var SchemaPushdata = require('./mongo');

var pushitem = new SchemaPushdata({
    projectId: 'GYpowy',
    productId: 'apX6RmZf6b',
    deviceName: 'esp32',
    messageType: 'notify',
    notifyType: 'property',
    signature: 'Zue3n3DQg7D36pSx13WwoQ==',
    pushId: '2f5f3286696e4edbadf2e11b49455f3b',
    nonce: '_NMzVnDp',
    pushTime: 1618298547587,
    data: '{"id":"1618298545747","version":"1.0","params":{"gps":{"value":120,"time":1618298547580},"hr":{"value":86,"time":1618298547580},"spO2":{"value":96,"time":1618298547580}}}'
  });

pushitem.save(function(err,item){
    if(err){
        return console.log("err:" + err);
    }
    console.log("save successed");
})